﻿//------------------------------------------------------------------------------
// 创建标识: Copyright (C) 2008 Socansoft.com 版权所有
// 创建描述: SocanCode代码生成器自动创建于 2008-11-25 18:49:39
//
// 功能描述: 
//
// 修改标识: 
// 修改描述: 
//------------------------------------------------------------------------------

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

public partial class Controls_BALANCEADJUSTListControl : System.Web.UI.UserControl
{
    public event RepeaterCommandEventHandler ItemCommand;
    //public List<string> Selected
    //{
    //    get
    //    {
    //        List<string> l = new List<string>();
    //        foreach (RepeaterItem item in rptBALANCEADJUST.Items)
    //        {
    //            CheckBox cb = item.FindControl("chkChoose") as CheckBox;
    //            if (cb != null && cb.Checked)
    //            {
    //                HiddenField fld = item.FindControl("hfBALANCEADJUST") as HiddenField;
    //                if (fld != null)
    //                {
    //                    string id = fld.Value;
    //                    l.Add(id);
    //                }
    //            }
    //        }
    //        return l;
    //    }
    //}

    protected void Page_Load(object sender, EventArgs e)
    {
    }

    public void Bind(List<Model.BALANCEADJUST> l)
    {
        rptBALANCEADJUST.DataSource = l;
        rptBALANCEADJUST.DataBind();
    }
    public void Bind(DataSet dst)
    {
        rptBALANCEADJUST.DataSource = dst;
        rptBALANCEADJUST.DataBind();
    }
    protected void rptBALANCEADJUST_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        if (ItemCommand != null)
            ItemCommand(source, e);
    }
}
